#!/bin/bash

INTERFACE="$1"
ACTION="$2"

case "$ACTION" in
    up)
        echo "Enabling Wi-Fi..."
        # 连接一下会议投屏的socket，提醒其重启服务
        echo "wifi enabling" | telnet localhost 27080
        ;;
    down)
        echo "Disabling Wi-Fi..." 
        # nmcli radio wifi off
        ;;
    *)
        echo "Usage:  <interface> <up|down>"
        # exit 1
        ;;
esac